<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <link rel="stylesheet" href="css/base.css">
    <script src="js/jquery.min.js"></script>
    <style type="text/css">
        .img-div1,
        .img-div2 {
            position: absolute;
            padding-left: 400px;
            padding-top: 12px;
        }

        .img-ft {
            height: 30px;
        }
    </style>
</head>
<body>
<div id="main">
    <form action="LoginServlet" method="post" class="form">
        <div class="form-head">
            <h2>登录</h2>
            <p>还没有账号？<a href="html/register.html">立即注册</a></p>
        </div>
        <span id="msg" style="padding-left: 100px;color: red;">
		  		<% if(request.getAttribute("msg")!=null){ %>
		  			<%=request.getAttribute("msg") %>
		  		<%} %>
        </span>
        <div class="form-body">
            <div class="img-div1">
                <img src="" class="img-ft" id="img1" />
            </div>
            <div class="ui-input">
                <input id="username" name="username" type="text" placeholder="账号">
            </div>
            <div class="img-div2">
                <img src="" class="img-ft" id="img2" />
            </div>
            <div class="ui-input">
                <input type="password" name="password" id="password" placeholder="密码">
            </div>
            <p class="forget-password">
                <a href="html/forget.html">忘记密码？</a>
            </p>
            <button type="submit" class="ui-button ui-button--success">登录</button>
        </div>
    </form>
</div>
<script src="js/base.js"></script>
<script src="js/login.js"></script>
</body>
</html>
